import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import pojo.Employee;
import service.empService;

import java.util.List;

public class test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
        empService e = (empService) ac.getBean("emp");
        System.out.println(e.findUser().get(1));
    }
}
